<style type="text/css">
table .html {
    font-family: Arial;
    padding-right: 4px;
}
</style>
<table class="layui-table  text-center" lay-size="sm">
    <tbody>
        <tr>
            <th style="width: 48px">#</th>
            <th>承运商</th>
            <th>承运商编号</th>
            <th>付款方式</th>
            <th>状态</th>
            <th>提货时间</th>
            <th>出库时间</th>
            <th>货代地址</th>
            <th>排序</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
        {volist name="list" id="item"}
            <tr>
                <td>{$key+1}</td>
                <td class="text-left">{$item.carrier_name}</td>
                <td>{$item.carrier_num}</td>
                <td>{$item.pay_type}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('update',['carrier_id'=>$item['carrier_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>{$item.take_time}</td>
                <td>{$item.out_time}</td>
                <td class="text-left">{$item.address}</td>
                <td>{$item.sort}</td>
                <td class="text-left">{$item.remark}</td>
                <td><a href="{:url('add',['carrier_id'=>$item['carrier_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" title="承运商">修改</a>
                    <a href="{:url('delete',['ids'=>$item['carrier_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
    </tbody>
</table>
